package com.diligent.cloud.printer.client.fallback;

import com.canny.commons.model.Codes;
import com.diligent.cloud.primary.data.model.Result;
import com.diligent.cloud.printer.client.service.PrinterFeignService;
import org.springframework.http.ResponseEntity;
import org.springframework.web.multipart.MultipartFile;

/**
 * @Description:
 * @Author: xf107397
 * @Date: Create：in 2020-07-03:12:10
 * @Modified By：
 */
public class PrinterFeignFallback implements PrinterFeignService {

    @Override
    public ResponseEntity<Result> printFile(MultipartFile file, String printerName) {
        Result result = new Result(Codes.fail.getCode(), "请求中断", Result.ResultDateType.object, printerName);
        return ResponseEntity.ok(result);
    }
}
